package com.wing.visual.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wing.platform.order.model.entity.Warehouse;
import com.wing.purchase.model.entity.PurchaseStorageWork;
import com.wing.visual.entity.WarehouseInoutStorageOrderTotal;
import com.wing.visual.entity.WarehouseInoutStorageTotal;
import com.wing.visual.entity.WarehouseMaterialAmountTotal;
import com.wing.visual.entity.WarehouseTypeTotal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 仓库可视化
 *
 * @author xiayang
 */
@Mapper
public interface WarehouseDao extends BaseMapper<Warehouse> {

    /**
     * 仓库物资总额统计
     *
     * @return
     */
    List<WarehouseMaterialAmountTotal> warehouseMaterialAmountTotal();

    /**
     * 库存物资总额
     *
     * @return
     */
    BigDecimal warehouseAmountSum();

    /**
     * 出库任务数
     *
     * @return
     */
    Integer warehouseOutStorageTaskSum();

    /**
     * 入库任务数
     *
     * @return
     */
    Integer warehouseInStorageTaskSum();

    /**
     * 出入库数量统计
     *
     * @return
     */
    Integer warehouseInoutStorageQuantityTotal(@Param("params") Map<String, Object> params);

    /**
     * 物流数量
     *
     * @return
     */
    Integer logisticsSum();

    /**
     * 仓库类型统计
     *
     * @return
     */
    List<WarehouseTypeTotal> warehouseTypeTotal();

    /**
     * 出入库物料统计
     *
     * @return
     */
    List<WarehouseInoutStorageTotal> warehouseInoutStorageTotal(@Param("params") Map<String, Object> params);

    /**
     * 出入库单量统计
     *
     * @return
     */
    List<WarehouseInoutStorageOrderTotal> inoutStorageOrderTotal(@Param("params") Map<String, Object> params);

}
